package cn.zqh.bean.bo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zqh
 * @since 2023-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Order对象", description="")
public class Dydj implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单表主键")
    @TableId(value = "orderId", type = IdType.ID_WORKER_STR)
    private String orderId;

    @ApiModelProperty(value = "店铺id")
    @TableField("userId")
    private String userId;

    @ApiModelProperty(value = "店铺id")
    @TableField("storeId")
    private String storeId;

    @ApiModelProperty(value = "商品id")
    @TableField("commodityId")
    private String commodityId;

    @ApiModelProperty(value = "数量")
    private Integer number;

    @ApiModelProperty(value = "价钱")
    private Double price;

    @ApiModelProperty(value = "收货地址")
    private String address;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除")
    @TableField("Is_delete")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty(value = "1订单创建成功，2发货中，3已经签收")
    private Integer style;


}
